/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import java.io.Serializable;

/**
 *
 * @author Administrator
 */
public class Customer implements Serializable{

    @Override 
    public boolean equals(Object o) {
            if(!(o instanceof Customer))
                    return false;

            Customer temp = (Customer)o;
            if(temp.id.equals(temp.id))
                    return true;
            return false;

    }
    
    
    
    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the id
     */
    public String getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * @return the male
     */
    public boolean isMale() {
        return male;
    }

    /**
     * @param male the male to set
     */
    public void setMale(boolean male) {
        this.male = male;
    }

    /**
     * @return the type
     */
    /*public CustomerType getType() {
        return type;
    }*/

    /**
     * @param type the type to set
     */
    /*public void setType(CustomerType type) {
        this.type = type;
    }
    public enum CustomerType {
        INDIVIDUAL,
        VIP,
        ENTERPRISE;
    }*/
    
    private String name;
    private String id;
    private boolean male;
    //private CustomerType type;
}
